package com.ht.controller;

import com.ht.service.NommsgService;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Controller
@RequestMapping("/nummsg")
public class NommsgController {

    @Resource
    private NommsgService nommsgService;

    /*查看我的个人信息
     * @param
     * @return
     **/
    @RequestMapping("/gonummsg")
    public String gonummsg(Model model, Integer empId){
        List<Map> list = nommsgService.selectEmpMsg(empId);
        model.addAttribute("list",list);
        System.out.println(list);
        return "nummsg";
    }

//    @RequestMapping("/updemppwd")


}
